package net.devkit.core.pojo.helper;

import net.devkit.common.toolkit.DevConstant;

/**
 * 分页查询,排序,辅助
 * 
 * @author szy
 */
public class PagerHelper {
	private Integer pageno = DevConstant.PAGE_DEFAULT_NO;
	private Integer pagesize = DevConstant.PAGE_DEFAULT_SIZE;
	//sortname 与 sortorder 下标对应 
	private String[] sortname;
	private String[] sortorder;
			
	public static final String SORT_ORDER_ASC = "asc";
	public static final String SORT_ORDER_DESC = "desc";

	
	public PagerHelper() {
		super();
	}

	
	public PagerHelper(Integer pageno, Integer pagesize) {
		super();
		this.pageno = pageno;
		this.pagesize = pagesize;
	}
	

	public PagerHelper(Integer pageno, Integer pagesize, String[] sortname,
			String[] sortorder) {
		super();
		this.pageno = pageno;
		this.pagesize = pagesize;
		this.sortname = sortname;
		this.sortorder = sortorder;
	}


	public Integer getPageno() {
		return pageno;
	}

	public void setPageno(Integer pageno) {
		this.pageno = pageno;
	}

	public Integer getPagesize() {
		return pagesize;
	}

	public void setPagesize(Integer pagesize) {
		this.pagesize = pagesize;
	}


	public String[] getSortname() {
		return sortname;
	}


	public void setSortname(String[] sortname) {
		this.sortname = sortname;
	}


	public String[] getSortorder() {
		return sortorder;
	}


	public void setSortorder(String[] sortorder) {
		this.sortorder = sortorder;
	}
	
}
